package cn.edu.ctbu.demo1.repository;

import cn.edu.ctbu.demo1.domain.Admin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AdminRepository extends JpaRepository<Admin,Integer> {

    Page<Admin> findAll(Pageable pageable);
    List<Admin> findByNoAndPassword(String no,String password);
}
